package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCarService {


    /**
     * 购物车添加方法
     * @param shoppingCartDTO
     * @return
     */
    public void add(ShoppingCartDTO shoppingCartDTO);

    /**
     * 购物车查看
     * @return
     */
    List<ShoppingCart> select();

    /**
     * 清空购物车
     * @return
     */
    void deleteAll();

    /**
     * 减少购物车的份数
     * @return
     */
    void deleteOne(ShoppingCartDTO shoppingCartDTO);

}
